Skip to main content

All Questions

60votes
6answers
40kviews

Why do many functions that return structures in C, actually return pointers to structures?

What is the advantage of returning a pointer to a structure as opposed to returning the whole structure in the return statement of the function? I am talking about functions like fopen and other low ...
yoyo_fun's user avatar

close